
package kalkon;

import java.io.OutputStream;

/**
 * Output module interface is used to save output files to destination.
 *
 * Destination is (rootDir + relativePath).
 *
 * @author tommz
 */
public interface OutputModule {

    /**
     * Sets implementation specific option.
     * @param option
     * @param value
     */
    void setOption(String option, String value);

    /**
     * Sets the rootDir.
     * @param dir
     */
    void setRootDir(String dir);

    /**
     * Opens file (rootDir + relativePath) and returns its outputStream.
     * @param relativePath
     * @return
     */
    OutputStream getOutputStream(String relativePath);

}
